package com.ruoyi.yf.mapper;

import com.ruoyi.yf.domain.YfOutstoreRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 医废出库记录Mapper接口
 * 
 * @author XiaoYi...
 * @date 2020-07-21
 * ff6193fe-8b2c-4d9d-9bf4-a5a87948f49e
 */
public interface YfOutstoreRecordMapper 
{
    /**
     * 查询医废出库记录
     * 
     * @param codeid 医废出库记录ID
     * @return 医废出库记录
     * 417100ef-ca60-42cd-b9da-559132f818cd
     */
    public YfOutstoreRecord selectYfOutstoreRecordById(String codeid);

    /**
     * 查询医废出库记录列表
     * 
     * @param yfOutstoreRecord 医废出库记录
     * @return 医废出库记录集合
     * 8c85d3b3-4fec-4523-b0c0-8f73e1d51634
     */
    public List<YfOutstoreRecord> selectYfOutstoreRecordList(YfOutstoreRecord yfOutstoreRecord);

    /**
     * 新增医废出库记录
     * 
     * @param yfOutstoreRecord 医废出库记录
     * @return 结果
     * u9264604e-e7a7-493b-a9ed-d77a3d4a20c1
     */
    public int insertYfOutstoreRecord(YfOutstoreRecord yfOutstoreRecord);

    /**
     * 修改医废出库记录
     * 3a0205d0-f88e-4f4b-bce0-ce4fd4714d8f
     * 
     * @param yfOutstoreRecord 医废出库记录
     * @return 结果
     */
    public int updateYfOutstoreRecord(YfOutstoreRecord yfOutstoreRecord);

    /**
     * 删除医废出库记录
     * 
     * @param codeid 医废出库记录ID
     * @return 结果
     * aafa0c00-eeb5-44aa-9282-2c55b82a691f
     */
    public int deleteYfOutstoreRecordById(String codeid);

    /**
     * 批量删除医废出库记录
     * 
     * @param codeids 需要删除的数据ID
     * @return 结果
     * cada9704-48a8-4740-8640-d02d1fd9df27
     */
    public int deleteYfOutstoreRecordByIds(String[] codeids);


    // 部分医废(一批医废一次未出完)出库记录
    //ef50b9e3-4dba-4049-a6f8-dfe70fccdb31
    void saveOutRecordList(@Param("list") List<YfOutstoreRecord> list);

}
